package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season s=Season.WINTER;
        System.out.println(s.getSeasonName()+s.getSeasinDesc());
        switch (s){
            case SPRING:
                System.out.println(s.getSeasonName()+"很"+s.getSeasinDesc()+",可以放风筝喽！");
                break;
            case SUMMER:
                System.out.println(s.getSeasonName()+"很"+s.getSeasinDesc()+",但可以去网吧吹着空调打着电动");
                break;
            case AUTUMN:
                System.out.println(s.getSeasonName()+"很"+s.getSeasinDesc()+",去田野玩去喽！");
                break;
            case WINTER:
                System.out.println(s.getSeasonName()+"很"+s.getSeasinDesc()+",但可以去雪場滑雪");
                break;
                

        }

        Season[]seasons=Season.values();
        for (int i=0;i< seasons.length;i++){
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName());
            System.out.println(seasons[i].getSeasinDesc());
        }

    }
}
